/*    */ package com.zimbra.cs.util.yauth;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.service.ServiceException.Argument;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AuthenticationException
/*    */   extends ServiceException
/*    */ {
/*    */   private final ErrorCode code;
/*    */   private String captchaUrl;
/*    */   private String captchaData;
/*    */   
/*    */   public AuthenticationException(ErrorCode code, String msg)
/*    */   {
/* 28 */     super(msg, "yauth." + code.name(), false, new ServiceException.Argument[0]);
/* 29 */     this.code = code;
/*    */   }
/*    */   
/*    */   public AuthenticationException(ErrorCode code) {
/* 33 */     this(code, code.getDescription());
/*    */   }
/*    */   
/*    */   public ErrorCode getErrorCode() {
/* 37 */     return this.code;
/*    */   }
/*    */   
/*    */   public void setCaptchaUrl(String url) {
/* 41 */     this.captchaUrl = url;
/*    */   }
/*    */   
/*    */   public void setCaptchaData(String data) {
/* 45 */     this.captchaData = data;
/*    */   }
/*    */   
/* 48 */   public String getCaptchaUrl() { return this.captchaUrl; }
/* 49 */   public String getCaptchaData() { return this.captchaData; }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/util/yauth/AuthenticationException.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */